package com.imageFilters;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Bitmap;
import android.graphics.Color;


public class NightVisionFilter implements ImageFilterInterface{
	private ImageData image;
	NoiseFilter noisefx;
	
	public NightVisionFilter() {
		super();
	}


	public ImageData imageProcess(Bitmap bmp) {
		this.image = new ImageData(bmp);
		noisefx = new NoiseFilter(bmp);
		return imageProcess();
	}
	

	public ImageData imageProcess() {
		// TODO Auto-generated method stub
		ImageBlender blender = new ImageBlender();
	    VignetteFilter vignetteFx = new VignetteFilter(image);
	    GradientMapFilter gradientFx = new GradientMapFilter(image);
		noisefx.Intensity = 0.15f;
		vignetteFx.Size = 1f;
		List<Integer> colors = new ArrayList<Integer>();
	    colors.add(Color.BLACK);
	    colors.add(Color.GREEN);
	    gradientFx.Map = new Gradient(colors);
	    gradientFx.BrightnessFactor = 0.2f;
	    image = noisefx.imageProcess();
	    image = gradientFx.imageProcess();
	    image = vignetteFx.imageProcess();
		return image;
	}


}
